NC='\033[0m'
GREEN='\033[0;32m'
RED='\033[0;31m'

totalTests=0
failedTests=0
testName="No Defined Test Name"

function Pass
{
    totalTests=`expr $totalTests + 1`
    printf "${GREEN}PASS${NC}: ${testName}"
    echo
}

function Fail
{
    totalTests=`expr $totalTests + 1`
    failedTests=`expr $failedTests + 1`
    printf "${RED}Failed${NC}: ${testName}"
    echo
}

function ExpectAndEq
{
    if [[ $# -eq 0 || `expr $# % 2` != 0 ]]
    then
        echo !!! Wrong parameter number for ExpectEq !!!
        exit -1
    fi

    while [ $# -gt 0 ]
    do
        left=$1
        shift
        right=$1
        shift

        if [[ $left != $right ]]
        then
            Fail
            return
        fi
    done

    Pass
}
